# Contributor: Zoey <zoey@z0ey.de>
# Contributor: Nulo <git@nulo.in>
# Maintainer: Zoey <zoey@z0ey.de>
pkgname=geckodriver
pkgver=0.35.0
pkgrel=0
pkgdesc="Proxy for using W3C WebDriver compatible clients to interact with Gecko-based browsers."
url="https://github.com/mozilla/geckodriver"
arch="all"
license="MPL-2.0"
makedepends="cargo cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/geckodriver/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cargo auditable build --release --bin geckodriver
}

check() {
	cargo test --release
}

package() {
	install -Dm0755 target/release/$pkgname -t "$pkgdir"/usr/bin
}

sha512sums="
17518966b847cca28dd879dd7aedcacc9b581367edbe78261b9cc3023f6013d185f16066252118a2de49f3286cba895022cdfac9d5928f9f6e4f03d645ad84f1  geckodriver-0.35.0.tar.gz
"
